export const genderMap: { [key: number]: string } = {
  1: '男',
  2: '女'
};
export function getGenderText(gender: number): string {
  return genderMap[gender] || '';
}

export const degreeMap: { [key: number]: string } = {
  10: '初中',
  20: '高中',
  30: '本科',
  40: '硕士研究生',
  50: '博士研究生'
};
export function getDegreeText(degree: number): string {
  return degreeMap[degree] || '';
}

export const employeeContractTypeMap: { [key: number]: string } = {
  10: '全职',
  20: '兼职',
  30: '实习'
};
export function getEmployeeContractTypeText(contractType: number): string {
  return employeeContractTypeMap[contractType] || '';
}

export const employeeContractStateMap: { [key: number]: string } = {
  10: '有效',
  20: '终止',
  30: '续签'
};
export function getEmployeeContractStateText(state: number): string {
  return employeeContractStateMap[state] || '';
}

export const employeeAttendanceStatusMap: { [key: number]: string } = {
  10: '正常',
  20: '迟到',
  30: '早退',
  40: '旷工',
  50: '加班'
};
export function getEmployeeAttendanceStatusText(status: number): string {
  return employeeAttendanceStatusMap[status] || '';
}

export const employeePaymentMethodMap: { [key: number]: string } = {
  10: '银行转账',
  20: '现金',
  30: '支票'
};
export function getEmployeePaymentMethodText(paymentMethod: number): string {
  return employeePaymentMethodMap[paymentMethod] || '';
}

